import java.util.Scanner;

public class Test3 {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);

        long n = in.nextLong(); // 行数
        long m = in.nextLong(); // 最大长度


        Node root = new Node(1);

        while (in.hasNextInt()) {

        }
    }

    static class Node {
        Node left;
        Node right;

        long val;

        public Node(long val) {
            this.val = val;
        }

        public Node(Node left, Node right, long val) {
            this.left = left;
            this.right = right;
            this.val = val;
        }
    }
}
